package com.yjy.fxkj;

/**
 * 抽象处理者类
 */
public abstract class Handler {
    protected String name;
    protected Handler nextHandler;

    public Handler(String name) {
        this.name = name;
    }

    public void setNextHandler(Handler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract boolean process(LeaveRequest leaveRequest);//处理请假
}
